import VueRouter from 'vue-router'

//导入对应的路由组件
import HomeContainer from './components/tabbar/homeContainer.vue'
import MemberContainer from './components/tabbar/memberContainer.vue'
import SearchContainer from './components/tabbar/searchContainer.vue'
import EmailContainer from './components/tabbar/emailContainer.vue'

var router = new VueRouter({
    routes: [   //配置路由规则
        { path:'/', redirect:'/home'},
        { path:'/home', component:HomeContainer },
        { path:'/member', component:MemberContainer },
        { path:'/search', component:SearchContainer },
        { path:'/email', component:EmailContainer }

    ],
    linkActiveClass: 'mui-active'
    
})

//把路由对象暴露出去
export default router